If $CmdLine[0] == 0 Then 
	Exit
EndIf

BlockInput(1)
SplashImageOn("freeze", "d:\dist\bg.gif",1024,768,0,0)
Sleep(1000)
$window = IniRead("d:/dist/config.ini","window","window", "")
If WinExists($window) Then  
	WinActivate($window, "")
	sleep(100)
	For $i = 1 to $CmdLine[0] Step 1
		$no="@"&$CmdLine[$i]
		send($no)
		Send("{ENTER}")
		sleep(300)
		Send("{ENTER}")
	Next
Else
	Exit
EndIf
SplashOff()
BlockInput(0)